package com.atguigu06.polymorphism;

/**
 * ClassName: PersonTest
 * Description:
 *
 * @Author liu
 * @Create 2024/10/30 20:45
 * @Version 1.0
 */
public class Man extends Person {
  boolean isSmoking ;
  int id = 1002;
  public void eat(){
      System.out.println("男吃肉");
  }
  public void walk(){
      System.out.println("男走路");
  }

  public void earnMoney(){
      System.out.println("男挣钱");
  }
}
